.class public Lcom/brixd/android/swipeback/lib/SwipeBackLayout;
.super Landroid/widget/FrameLayout;
.source "SwipeBackLayout.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/android/swipeback/lib/SwipeBackLayout$ViewDragCallback;,
        Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeToFinishListener;,
        Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;
    }
.end annotation


# static fields
.field private static final DEFAULT_SCRIM_COLOR:I = -0x67000000

.field private static final DEFAULT_SCROLL_THRESHOLD:F = 0.3f

.field public static final EDGE_ALL:I = 0xb

.field public static final EDGE_BOTTOM:I = 0x8

.field private static final EDGE_FLAGS:[I

.field public static final EDGE_LEFT:I = 0x1

.field public static final EDGE_RIGHT:I = 0x2

.field private static final MIN_FLING_VELOCITY:I = 0x190

.field private static final OVERSCROLL_DISTANCE:I = 0xa

.field public static final STATE_DRAGGING:I = 0x1

.field public static final STATE_IDLE:I = 0x0

.field public static final STATE_SETTLING:I = 0x2


# instance fields
.field private mActivity:Landroid/app/Activity;

.field private mContentLeft:I

.field private mContentTop:I

.field private mContentView:Landroid/view/View;

.field private mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

.field private mEdgeFlag:I

.field private mEnable:Z

.field private mInLayout:Z

.field private mListeners:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;",
            ">;"
        }
    .end annotation
.end field

.field private mScrimColor:I

.field private mScrimOpacity:F

.field private mScrollPercent:F

.field private mScrollThreshold:F

.field private mShadowBottom:Landroid/graphics/drawable/Drawable;

.field private mShadowLeft:Landroid/graphics/drawable/Drawable;

.field private mShadowRight:Landroid/graphics/drawable/Drawable;

.field private mSwipeToFinishListener:Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeToFinishListener;

.field private mTmpRect:Landroid/graphics/Rect;

.field private mTrackingEdge:I


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 73
    const/4 v0, 0x4

    new-array v0, v0, [I

    fill-array-data v0, :array_a

    sput-object v0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->EDGE_FLAGS:[I

    return-void

    nop

    :array_a
    .array-data 4
        0x1
        0x2
        0x8
        0xb
    .end array-data
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 126
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 127
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 130
    sget v0, Lcom/brixd/android/swipeback/lib/R$attr;->SwipeBackLayoutStyle:I

    invoke-direct {p0, p1, p2, v0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 131
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 16
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    const/4 v11, 0x1

    .line 134
    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 83
    const v8, 0x3e99999a

    iput v8, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrollThreshold:F

    .line 87
    iput-boolean v11, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEnable:Z

    .line 114
    const/high16 v8, -0x67000000

    iput v8, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrimColor:I

    .line 118
    new-instance v8, Landroid/graphics/Rect;

    invoke-direct {v8}, Landroid/graphics/Rect;-><init>()V

    iput-object v8, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTmpRect:Landroid/graphics/Rect;

    .line 135
    new-instance v8, Lcom/brixd/android/swipeback/lib/SwipeBackLayout$ViewDragCallback;

    const/4 v9, 0x0

    invoke-direct {v8, p0, v9}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout$ViewDragCallback;-><init>(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;Lcom/brixd/android/swipeback/lib/SwipeBackLayout$1;)V

    invoke-static {p0, v8}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->create(Landroid/view/ViewGroup;Lcom/brixd/android/swipeback/lib/ViewDragHelper$Callback;)Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    move-result-object v8

    iput-object v8, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    .line 137
    sget-object v8, Lcom/brixd/android/swipeback/lib/R$styleable;->SwipeBackLayout:[I

    sget v9, Lcom/brixd/android/swipeback/lib/R$style;->SwipeBackLayout:I

    invoke-virtual {p1, p2, v8, p3, v9}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 140
    .local v0, "a":Landroid/content/res/TypedArray;
    sget v8, Lcom/brixd/android/swipeback/lib/R$styleable;->SwipeBackLayout_edge_size:I

    const/4 v9, -0x1

    invoke-virtual {v0, v8, v9}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v2

    .line 141
    .local v2, "edgeSize":I
    if-lez v2, :cond_36

    .line 142
    invoke-virtual {p0, v2}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->setEdgeSize(I)V

    .line 143
    :cond_36
    sget-object v8, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->EDGE_FLAGS:[I

    sget v9, Lcom/brixd/android/swipeback/lib/R$styleable;->SwipeBackLayout_edge_flag:I

    const/4 v10, 0x0

    invoke-virtual {v0, v9, v10}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v9

    aget v4, v8, v9

    .line 144
    .local v4, "mode":I
    invoke-virtual {p0, v4}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->setEdgeTrackingEnabled(I)V

    .line 146
    sget v8, Lcom/brixd/android/swipeback/lib/R$styleable;->SwipeBackLayout_shadow_left:I

    sget v9, Lcom/brixd/android/swipeback/lib/R$drawable;->shadow_left:I

    invoke-virtual {v0, v8, v9}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v6

    .line 148
    .local v6, "shadowLeft":I
    sget v8, Lcom/brixd/android/swipeback/lib/R$styleable;->SwipeBackLayout_shadow_right:I

    sget v9, Lcom/brixd/android/swipeback/lib/R$drawable;->shadow_right:I

    invoke-virtual {v0, v8, v9}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v7

    .line 150
    .local v7, "shadowRight":I
    sget v8, Lcom/brixd/android/swipeback/lib/R$styleable;->SwipeBackLayout_shadow_bottom:I

    sget v9, Lcom/brixd/android/swipeback/lib/R$drawable;->shadow_bottom:I

    invoke-virtual {v0, v8, v9}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v5

    .line 152
    .local v5, "shadowBottom":I
    invoke-virtual {p0, v6, v11}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->setShadow(II)V

    .line 153
    const/4 v8, 0x2

    invoke-virtual {p0, v7, v8}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->setShadow(II)V

    .line 154
    const/16 v8, 0x8

    invoke-virtual {p0, v5, v8}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->setShadow(II)V

    .line 155
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    .line 156
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v8

    invoke-virtual {v8}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v8

    iget v1, v8, Landroid/util/DisplayMetrics;->density:F

    .line 157
    .local v1, "density":F
    const/high16 v8, 0x43c80000

    mul-float v3, v8, v1

    .line 158
    .local v3, "minVel":F
    iget-object v8, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    invoke-virtual {v8, v3}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setMinVelocity(F)V

    .line 159
    return-void
.end method

.method static synthetic access$100(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEdgeFlag:I

    return v0
.end method

.method static synthetic access$1002(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;I)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;
    .param p1, "x1"    # I

    .prologue
    .line 20
    iput p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentLeft:I

    return p1
.end method

.method static synthetic access$1102(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;I)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;
    .param p1, "x1"    # I

    .prologue
    .line 20
    iput p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentTop:I

    return p1
.end method

.method static synthetic access$1200(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)F
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrollThreshold:F

    return v0
.end method

.method static synthetic access$1300(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)Landroid/app/Activity;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mActivity:Landroid/app/Activity;

    return-object v0
.end method

.method static synthetic access$1400(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeToFinishListener;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mSwipeToFinishListener:Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeToFinishListener;

    return-object v0
.end method

.method static synthetic access$200(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)Lcom/brixd/android/swipeback/lib/ViewDragHelper;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    return-object v0
.end method

.method static synthetic access$300(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTrackingEdge:I

    return v0
.end method

.method static synthetic access$302(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;I)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;
    .param p1, "x1"    # I

    .prologue
    .line 20
    iput p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTrackingEdge:I

    return p1
.end method

.method static synthetic access$400(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)Ljava/util/List;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mListeners:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$500(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)F
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrollPercent:F

    return v0
.end method

.method static synthetic access$502(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;F)F
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;
    .param p1, "x1"    # F

    .prologue
    .line 20
    iput p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrollPercent:F

    return p1
.end method

.method static synthetic access$600(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentView:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$700(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)Landroid/graphics/drawable/Drawable;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowLeft:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method static synthetic access$800(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)Landroid/graphics/drawable/Drawable;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowRight:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method static synthetic access$900(Lcom/brixd/android/swipeback/lib/SwipeBackLayout;)Landroid/graphics/drawable/Drawable;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    .prologue
    .line 20
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowBottom:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method private drawScrim(Landroid/graphics/Canvas;Landroid/view/View;)V
    .registers 10
    .param p1, "canvas"    # Landroid/graphics/Canvas;
    .param p2, "child"    # Landroid/view/View;

    .prologue
    const/4 v6, 0x0

    .line 446
    iget v3, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrimColor:I

    const/high16 v4, -0x1000000

    and-int/2addr v3, v4

    ushr-int/lit8 v1, v3, 0x18

    .line 447
    .local v1, "baseAlpha":I
    int-to-float v3, v1

    iget v4, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrimOpacity:F

    mul-float/2addr v3, v4

    float-to-int v0, v3

    .line 448
    .local v0, "alpha":I
    shl-int/lit8 v3, v0, 0x18

    iget v4, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrimColor:I

    const v5, 0xffffff

    and-int/2addr v4, v5

    or-int v2, v3, v4

    .line 450
    .local v2, "color":I
    iget v3, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTrackingEdge:I

    and-int/lit8 v3, v3, 0x1

    if-eqz v3, :cond_2c

    .line 451
    invoke-virtual {p2}, Landroid/view/View;->getLeft()I

    move-result v3

    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->getHeight()I

    move-result v4

    invoke-virtual {p1, v6, v6, v3, v4}, Landroid/graphics/Canvas;->clipRect(IIII)Z

    .line 457
    :cond_28
    :goto_28
    invoke-virtual {p1, v2}, Landroid/graphics/Canvas;->drawColor(I)V

    .line 458
    return-void

    .line 452
    :cond_2c
    iget v3, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTrackingEdge:I

    and-int/lit8 v3, v3, 0x2

    if-eqz v3, :cond_42

    .line 453
    invoke-virtual {p2}, Landroid/view/View;->getRight()I

    move-result v3

    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->getRight()I

    move-result v4

    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->getHeight()I

    move-result v5

    invoke-virtual {p1, v3, v6, v4, v5}, Landroid/graphics/Canvas;->clipRect(IIII)Z

    goto :goto_28

    .line 454
    :cond_42
    iget v3, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTrackingEdge:I

    and-int/lit8 v3, v3, 0x8

    if-eqz v3, :cond_28

    .line 455
    invoke-virtual {p2}, Landroid/view/View;->getLeft()I

    move-result v3

    invoke-virtual {p2}, Landroid/view/View;->getBottom()I

    move-result v4

    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->getRight()I

    move-result v5

    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->getHeight()I

    move-result v6

    invoke-virtual {p1, v3, v4, v5, v6}, Landroid/graphics/Canvas;->clipRect(IIII)Z

    goto :goto_28
.end method

.method private drawShadow(Landroid/graphics/Canvas;Landroid/view/View;)V
    .registers 10
    .param p1, "canvas"    # Landroid/graphics/Canvas;
    .param p2, "child"    # Landroid/view/View;

    .prologue
    .line 461
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTmpRect:Landroid/graphics/Rect;

    .line 462
    .local v0, "childRect":Landroid/graphics/Rect;
    invoke-virtual {p2, v0}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V

    .line 464
    iget v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEdgeFlag:I

    and-int/lit8 v1, v1, 0x1

    if-eqz v1, :cond_24

    .line 465
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowLeft:Landroid/graphics/drawable/Drawable;

    iget v2, v0, Landroid/graphics/Rect;->left:I

    iget-object v3, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowLeft:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v3

    sub-int/2addr v2, v3

    iget v3, v0, Landroid/graphics/Rect;->top:I

    iget v4, v0, Landroid/graphics/Rect;->left:I

    iget v5, v0, Landroid/graphics/Rect;->bottom:I

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 467
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowLeft:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 470
    :cond_24
    iget v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEdgeFlag:I

    and-int/lit8 v1, v1, 0x2

    if-eqz v1, :cond_43

    .line 471
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowRight:Landroid/graphics/drawable/Drawable;

    iget v2, v0, Landroid/graphics/Rect;->right:I

    iget v3, v0, Landroid/graphics/Rect;->top:I

    iget v4, v0, Landroid/graphics/Rect;->right:I

    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowRight:Landroid/graphics/drawable/Drawable;

    .line 472
    invoke-virtual {v5}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v5

    add-int/2addr v4, v5

    iget v5, v0, Landroid/graphics/Rect;->bottom:I

    .line 471
    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 473
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowRight:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 476
    :cond_43
    iget v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEdgeFlag:I

    and-int/lit8 v1, v1, 0x8

    if-eqz v1, :cond_62

    .line 477
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowBottom:Landroid/graphics/drawable/Drawable;

    iget v2, v0, Landroid/graphics/Rect;->left:I

    iget v3, v0, Landroid/graphics/Rect;->bottom:I

    iget v4, v0, Landroid/graphics/Rect;->right:I

    iget v5, v0, Landroid/graphics/Rect;->bottom:I

    iget-object v6, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowBottom:Landroid/graphics/drawable/Drawable;

    .line 478
    invoke-virtual {v6}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v6

    add-int/2addr v5, v6

    .line 477
    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 479
    iget-object v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowBottom:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v1, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    .line 481
    :cond_62
    return-void
.end method

.method private setContentView(Landroid/view/View;)V
    .registers 2
    .param p1, "view"    # Landroid/view/View;

    .prologue
    .line 178
    iput-object p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentView:Landroid/view/View;

    .line 179
    return-void
.end method


# virtual methods
.method public addIgnoredView(Landroid/view/View;)V
    .registers 3
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 380
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    invoke-virtual {v0, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->addIgnoredView(Landroid/view/View;)V

    .line 381
    return-void
.end method

.method public addSwipeListener(Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;)V
    .registers 3
    .param p1, "listener"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;

    .prologue
    .line 244
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mListeners:Ljava/util/List;

    if-nez v0, :cond_b

    .line 245
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mListeners:Ljava/util/List;

    .line 247
    :cond_b
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mListeners:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 248
    return-void
.end method

.method public attachToActivity(Landroid/app/Activity;)V
    .registers 10
    .param p1, "activity"    # Landroid/app/Activity;

    .prologue
    const/4 v7, 0x0

    .line 484
    iput-object p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mActivity:Landroid/app/Activity;

    .line 485
    invoke-virtual {p1}, Landroid/app/Activity;->getTheme()Landroid/content/res/Resources$Theme;

    move-result-object v4

    const/4 v5, 0x1

    new-array v5, v5, [I

    const v6, 0x1010054

    aput v6, v5, v7

    invoke-virtual {v4, v5}, Landroid/content/res/Resources$Theme;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 488
    .local v0, "a":Landroid/content/res/TypedArray;
    invoke-virtual {v0, v7, v7}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v1

    .line 489
    .local v1, "background":I
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    .line 491
    invoke-virtual {p1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v4

    invoke-virtual {v4}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/view/ViewGroup;

    .line 492
    .local v2, "decor":Landroid/view/ViewGroup;
    invoke-virtual {v2, v7}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/view/ViewGroup;

    .line 493
    .local v3, "decorChild":Landroid/view/ViewGroup;
    invoke-virtual {v3, v1}, Landroid/view/ViewGroup;->setBackgroundResource(I)V

    .line 494
    invoke-virtual {v2, v3}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 495
    invoke-virtual {p0, v3}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->addView(Landroid/view/View;)V

    .line 496
    invoke-direct {p0, v3}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->setContentView(Landroid/view/View;)V

    .line 497
    invoke-virtual {v2, p0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 498
    return-void
.end method

.method public clearIgnoredViews()V
    .registers 2

    .prologue
    .line 388
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    invoke-virtual {v0}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->clearIgnoredViews()V

    .line 389
    return-void
.end method

.method public computeScroll()V
    .registers 3

    .prologue
    .line 502
    const/high16 v0, 0x3f800000

    iget v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrollPercent:F

    sub-float/2addr v0, v1

    iput v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrimOpacity:F

    .line 503
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->continueSettling(Z)Z

    move-result v0

    if-eqz v0, :cond_13

    .line 504
    invoke-static {p0}, Landroid/support/v4/view/ViewCompat;->postInvalidateOnAnimation(Landroid/view/View;)V

    .line 506
    :cond_13
    return-void
.end method

.method protected drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
    .registers 10
    .param p1, "canvas"    # Landroid/graphics/Canvas;
    .param p2, "child"    # Landroid/view/View;
    .param p3, "drawingTime"    # J

    .prologue
    .line 434
    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentView:Landroid/view/View;

    if-ne p2, v2, :cond_21

    const/4 v0, 0x1

    .line 435
    .local v0, "drawContent":Z
    :goto_5
    invoke-direct {p0, p1, p2}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->drawShadow(Landroid/graphics/Canvas;Landroid/view/View;)V

    .line 437
    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/FrameLayout;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    move-result v1

    .line 438
    .local v1, "ret":Z
    iget v2, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrimOpacity:F

    const/4 v3, 0x0

    cmpl-float v2, v2, v3

    if-lez v2, :cond_20

    if-eqz v0, :cond_20

    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    .line 439
    invoke-virtual {v2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->getViewDragState()I

    move-result v2

    if-eqz v2, :cond_20

    .line 440
    invoke-direct {p0, p1, p2}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->drawScrim(Landroid/graphics/Canvas;Landroid/view/View;)V

    .line 442
    :cond_20
    return v1

    .line 434
    .end local v0    # "drawContent":Z
    .end local v1    # "ret":Z
    :cond_21
    const/4 v0, 0x0

    goto :goto_5
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 5
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    const/4 v1, 0x0

    .line 393
    iget-boolean v2, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEnable:Z

    if-nez v2, :cond_6

    .line 402
    :goto_5
    return v1

    .line 397
    :cond_6
    :try_start_6
    iget-object v2, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    invoke-virtual {v2, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->shouldInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    :try_end_b
    .catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_6 .. :try_end_b} :catch_d

    move-result v1

    goto :goto_5

    .line 399
    :catch_d
    move-exception v0

    .line 402
    .local v0, "e":Ljava/lang/ArrayIndexOutOfBoundsException;
    goto :goto_5
.end method

.method protected onLayout(ZIIII)V
    .registers 12
    .param p1, "changed"    # Z
    .param p2, "left"    # I
    .param p3, "top"    # I
    .param p4, "right"    # I
    .param p5, "bottom"    # I

    .prologue
    .line 417
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mInLayout:Z

    .line 418
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentView:Landroid/view/View;

    if-eqz v0, :cond_22

    .line 419
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentView:Landroid/view/View;

    iget v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentLeft:I

    iget v2, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentTop:I

    iget v3, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentLeft:I

    iget-object v4, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentView:Landroid/view/View;

    .line 420
    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v4

    add-int/2addr v3, v4

    iget v4, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentTop:I

    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentView:Landroid/view/View;

    .line 421
    invoke-virtual {v5}, Landroid/view/View;->getMeasuredHeight()I

    move-result v5

    add-int/2addr v4, v5

    .line 419
    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/view/View;->layout(IIII)V

    .line 422
    :cond_22
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mInLayout:Z

    .line 423
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 3
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    .line 408
    iget-boolean v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEnable:Z

    if-nez v0, :cond_6

    .line 409
    const/4 v0, 0x0

    .line 412
    :goto_5
    return v0

    :cond_6
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    invoke-virtual {v0, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->processTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    goto :goto_5
.end method

.method public removeIgnoredView(Landroid/view/View;)V
    .registers 3
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 384
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    invoke-virtual {v0, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->removeIgnoredView(Landroid/view/View;)V

    .line 385
    return-void
.end method

.method public removeSwipeListener(Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;)V
    .registers 3
    .param p1, "listener"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;

    .prologue
    .line 256
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mListeners:Ljava/util/List;

    if-nez v0, :cond_5

    .line 260
    :goto_4
    return-void

    .line 259
    :cond_5
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mListeners:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    goto :goto_4
.end method

.method public requestLayout()V
    .registers 2

    .prologue
    .line 427
    iget-boolean v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mInLayout:Z

    if-nez v0, :cond_7

    .line 428
    invoke-super {p0}, Landroid/widget/FrameLayout;->requestLayout()V

    .line 430
    :cond_7
    return-void
.end method

.method public scrollToFinishActivity()V
    .registers 8

    .prologue
    .line 353
    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentView:Landroid/view/View;

    invoke-virtual {v5}, Landroid/view/View;->getWidth()I

    move-result v1

    .line 354
    .local v1, "childWidth":I
    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentView:Landroid/view/View;

    invoke-virtual {v5}, Landroid/view/View;->getHeight()I

    move-result v0

    .line 356
    .local v0, "childHeight":I
    const/4 v2, 0x0

    .local v2, "left":I
    const/4 v4, 0x0

    .line 357
    .local v4, "top":I
    iget v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEdgeFlag:I

    and-int/lit8 v5, v5, 0x1

    if-eqz v5, :cond_44

    .line 358
    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowLeft:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v5}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v5

    add-int/2addr v5, v1

    add-int/lit8 v2, v5, 0xa

    .line 359
    const/4 v5, 0x1

    iput v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTrackingEdge:I

    .line 369
    :cond_20
    :goto_20
    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mListeners:Ljava/util/List;

    if-eqz v5, :cond_6d

    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mListeners:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->isEmpty()Z

    move-result v5

    if-nez v5, :cond_6d

    .line 370
    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mListeners:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_32
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_6d

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;

    .line 371
    .local v3, "listener":Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;
    iget v6, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTrackingEdge:I

    invoke-interface {v3, v6}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;->onEdgeTouch(I)V

    goto :goto_32

    .line 360
    .end local v3    # "listener":Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;
    :cond_44
    iget v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEdgeFlag:I

    and-int/lit8 v5, v5, 0x2

    if-eqz v5, :cond_58

    .line 361
    neg-int v5, v1

    iget-object v6, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowRight:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v6}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v6

    sub-int/2addr v5, v6

    add-int/lit8 v2, v5, -0xa

    .line 362
    const/4 v5, 0x2

    iput v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTrackingEdge:I

    goto :goto_20

    .line 363
    :cond_58
    iget v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEdgeFlag:I

    and-int/lit8 v5, v5, 0x8

    if-eqz v5, :cond_20

    .line 364
    neg-int v5, v0

    iget-object v6, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowBottom:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v6}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v6

    sub-int/2addr v5, v6

    add-int/lit8 v4, v5, -0xa

    .line 365
    const/16 v5, 0x8

    iput v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mTrackingEdge:I

    goto :goto_20

    .line 375
    :cond_6d
    iget-object v5, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    iget-object v6, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mContentView:Landroid/view/View;

    invoke-virtual {v5, v6, v2, v4}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z

    .line 376
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->invalidate()V

    .line 377
    return-void
.end method

.method public setEdgeSize(I)V
    .registers 3
    .param p1, "size"    # I

    .prologue
    .line 223
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    invoke-virtual {v0, p1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setEdgeSize(I)V

    .line 224
    return-void
.end method

.method public setEdgeTrackingEnabled(I)V
    .registers 4
    .param p1, "edgeFlags"    # I

    .prologue
    .line 200
    iput p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEdgeFlag:I

    .line 201
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    iget v1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEdgeFlag:I

    invoke-virtual {v0, v1}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setEdgeTrackingEnabled(I)V

    .line 202
    return-void
.end method

.method public setEnableGesture(Z)V
    .registers 2
    .param p1, "enable"    # Z

    .prologue
    .line 182
    iput-boolean p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mEnable:Z

    .line 183
    return-void
.end method

.method public setOnSwipeToFinishListener(Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeToFinishListener;)V
    .registers 2
    .param p1, "listener"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeToFinishListener;

    .prologue
    .line 300
    iput-object p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mSwipeToFinishListener:Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeToFinishListener;

    .line 301
    return-void
.end method

.method public setScrimColor(I)V
    .registers 2
    .param p1, "color"    # I

    .prologue
    .line 211
    iput p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrimColor:I

    .line 212
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->invalidate()V

    .line 213
    return-void
.end method

.method public setScrollThresHold(F)V
    .registers 4
    .param p1, "threshold"    # F

    .prologue
    .line 310
    const/high16 v0, 0x3f800000

    cmpl-float v0, p1, v0

    if-gez v0, :cond_b

    const/4 v0, 0x0

    cmpg-float v0, p1, v0

    if-gtz v0, :cond_13

    .line 311
    :cond_b
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Threshold value should be between 0 and 1.0"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 313
    :cond_13
    iput p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mScrollThreshold:F

    .line 314
    return-void
.end method

.method public setSensitivity(Landroid/content/Context;F)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "sensitivity"    # F

    .prologue
    .line 169
    iget-object v0, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mDragHelper:Lcom/brixd/android/swipeback/lib/ViewDragHelper;

    invoke-virtual {v0, p1, p2}, Lcom/brixd/android/swipeback/lib/ViewDragHelper;->setSensitivity(Landroid/content/Context;F)V

    .line 170
    return-void
.end method

.method public setShadow(II)V
    .registers 4
    .param p1, "resId"    # I
    .param p2, "edgeFlag"    # I

    .prologue
    .line 346
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p0, v0, p2}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->setShadow(Landroid/graphics/drawable/Drawable;I)V

    .line 347
    return-void
.end method

.method public setShadow(Landroid/graphics/drawable/Drawable;I)V
    .registers 4
    .param p1, "shadow"    # Landroid/graphics/drawable/Drawable;
    .param p2, "edgeFlag"    # I

    .prologue
    .line 326
    and-int/lit8 v0, p2, 0x1

    if-eqz v0, :cond_a

    .line 327
    iput-object p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowLeft:Landroid/graphics/drawable/Drawable;

    .line 333
    :cond_6
    :goto_6
    invoke-virtual {p0}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->invalidate()V

    .line 334
    return-void

    .line 328
    :cond_a
    and-int/lit8 v0, p2, 0x2

    if-eqz v0, :cond_11

    .line 329
    iput-object p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowRight:Landroid/graphics/drawable/Drawable;

    goto :goto_6

    .line 330
    :cond_11
    and-int/lit8 v0, p2, 0x8

    if-eqz v0, :cond_6

    .line 331
    iput-object p1, p0, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->mShadowBottom:Landroid/graphics/drawable/Drawable;

    goto :goto_6
.end method

.method public setSwipeListener(Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;)V
    .registers 2
    .param p1, "listener"    # Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 235
    invoke-virtual {p0, p1}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->addSwipeListener(Lcom/brixd/android/swipeback/lib/SwipeBackLayout$SwipeListener;)V

    .line 236
    return-void
.end method
